<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<script language="javascript">
//--------------------------------------------------ajax删除
function up_goods(per,uid){
up_ajax('temp','admincp.php?module=goods&action=up_goods&per='+per+'&value='+$('#'+per+'_'+uid).val()+'&uid='+uid);
}	
</script> 
<div id="right">
	<table class="clst" align="center" cellpadding="0" cellspacing="1">
		<tr>
			<td class="tleft">商品列表</td>
			<td class="tright"><a href="admincp.php?module=$module&action=add" class="but1">添加商品</a></td>
		</tr>
	</table>
	<form name="search_form" action="admincp.php" method="GET">
	<input type="hidden" name="module" value="goods"/>
	<input type="hidden" name="action" value="list"/>
	<input type="hidden" name="amode" value="detail_search"/>
	<input type="hidden" name="search_d"/>
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th>商品搜索</th>
		</tr>
		<tr >
			<td class="td_left">商品名称 <input type="text" name="ps_subject" id="ps_subject" value="$ps_subject" size="20" maxLength="100" class="text" /> &nbsp;&nbsp;&nbsp;&nbsp; 商品编码 <input type="text" name="ps_code" id="ps_code" value="$ps_code"  size="20" maxLength="100"class="text" /> <input name="member" type="submit" value="&nbsp;搜索商品&nbsp;" /></td>
		</tr>
		<tr >
			<td class="cpsm"><a href="http://localhost/mvmmall/quotation.php?action=goods_excel" class="red" style="float:right;">下载全部商品信息</a>输入商品搜索信息，即可进行商品查询。</td>
		</tr>
	</table>
	</form>
	
	<div style="padding-top:10px; line-height:25px;"><span style="float:right">分类搜索 $cat_menu</span>
	<strong>排序方式：</strong>
    <a href="admincp.php?module=$module&action=$action&ps_ac=$ps_ac&ps_or=price&ps_cate=$ps_cate&amode=$amode&ps_subject=$ps_subject&ps_code=$ps_code&ps_class=$ps_class&page=$page" class="but1">商品价格</a> 
    <a href="admincp.php?module=$module&action=$action&ps_ac=$ps_ac&ps_or=stock&ps_cate=$ps_cate&amode=$amode&ps_subject=$ps_subject&ps_code=$ps_code&ps_class=$ps_class&page=$page" class="but1">库存量</a> 
    <a href="admincp.php?module=$module&action=$action&ps_ac=$ps_ac&ps_or=date&ps_cate=$ps_cate&amode=$amode&ps_subject=$ps_subject&ps_code=$ps_code&ps_class=$ps_class&page=$page" class="but1">登记日期</a></div>
	<form name="goods" action="admincp.php?module=goods" method="post">
    <input type="hidden" name="action" id="action" value="del"/>
	<table cellpadding="0" cellspacing="1" class="list" style="margin-top:2px;">
		<tr>
			<th width="4%"></th>
			<th width="7%">上/下架</th>
			<th >商品信息</th>
            <th width="10%">商品编码</th>
			<th width="10%">所属分类</th>
			<th width="10%">位置</th>
			<th width="8%">原价</th>
			<th width="8%">商城价格</th>
			<th width="8%">库存量</th>
			<th width="9%">操作</th>
		</tr>
<!--
EOT;
foreach ($gods_rt as $val){
print <<<EOT
-->	
		<tr id="r$val[uid]">
			<td><input type="checkbox" name="uid_check[]" value="$val[uid]" /></td>
			<td>$val[upv]</td>
			<td>$val[goods_name]</td>
			<td >$val[goods_code]</td>
			<td>$val[goods_category]</td>
			<td>$val[goods_status]</td>
			<td>$val[goods_cost]</td>
			<td>$val[goods_sale_price]</td>
			<td>$val[goods_stock]</td>
			<td><a href="$val[edit]">$lang[laws]</a> | <a href="javascript:;" onclick="remove('$val[uid]','$val[del]');">$lang[remove]</a></td>
		</tr>
<!--
EOT;
} print <<<EOT
-->
	</table>
	<div id="page"><b style="float:left;"><input type="checkbox" name="chkall" id="chkall" value="1" onclick="checkall(this.form)" />全选 <input name="" type="submit" value="删除选定" onclick="return really()"/></b><span>$page_list</span></div>
</form>
	</div>
<!--
EOT;
?>-->